import request from '@/utils/request'

// 查询资产盘点主列表
export function listElecMaterialCheck(query) {
  return request({
    url: '/elec/elecMaterialCheck/list',
    method: 'get',
    params: query
  })
}

// 查询资产盘点主列表
export function listElecMaterialCheckDetails(query) {
  return request({
    url: '/elec/elecMaterialCheckDetails/list',
    method: 'get',
    params: query
  })
}

// 查询资产盘点主详细
export function getElecMaterialCheck(checkId) {
  return request({
    url: '/elec/elecMaterialCheck/' + checkId,
    method: 'get'
  })
}

// 新增资产盘点主
export function addElecMaterialCheck(data) {
  return request({
    url: '/elec/elecMaterialCheck',
    method: 'post',
    data: data
  })
}

// 修改资产盘点主
export function updateElecMaterialCheck(data) {
  return request({
    url: '/elec/elecMaterialCheck',
    method: 'put',
    data: data
  })
}

// 删除资产盘点主
export function delElecMaterialCheck(checkId) {
  return request({
    url: '/elec/elecMaterialCheck/' + checkId,
    method: 'delete'
  })
}
